<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试页面</title>
    <!--生产环境优先使用bootcdn的资源-->
    <!--https://cdn.bootcss.com/bootstrap/2.0.4/css/bootstrap.min.css-->
    <!--css/bootstrap.min.css"-->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/2.0.4/css/bootstrap.min.css"/>
    <!--angular-->
    <!--https://cdn.bootcss.com/angular.js/1.6.6/angular.min.js-->
    <!--js/angular.min.js-->
    <script type="text/javascript"
            src="https://cdn.bootcss.com/angular.js/1.6.6/angular.min.js" charset="UTF-8"></script>
</head>
<body ng-app="myApp" ng-controller="myCtrl">
<div class="container">
    <div class="navbar">
        <div class="navbar-inner">
            <a class="btn btn-default" href="#" href="/" target="_self"> 首页 </a>
        </div>
        <input type="submit" ng-click="run()">
        <table>
            <tr>
                <td> 上传图片</td>
                <td>
                    <input type="file" id="file" name="file"
                           ng-model="params.picture"
                           accept="image/jpeg"
                           onchange="angular.element(this).scope().getFileData(this.files)">
                </td>
            </tr>
            <tr>
                <td>
                    源图片
                </td>
                <td>
                    <img ng-src="{{ params.base64str }}"/>
                </td>
            </tr>
            <tr>
                <td>
                    定位
                </td>
                <td>
                    <img ng-src="{{ dstImg }}"/>
                </td>
            </tr>
            <tr>
                <td> 日期</td>
                <td><input type="date" ng-model="params.dt"/></td>
            </tr>
            <tr>
                <td>图片识别结果</td>
                <td><textarea rows="10" cols="60" style="width:100%" ng-model="result"></textarea></td>
            </tr>

        </table>
        <div contenteditable="true"></div>
    </div>
</div>
<script type="text/javascript"
        src="js/index.js" charset="UTF-8"></script>
</body>
</html>